home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / OLE2BOOK.ZIP / CHAP13.ZIP / PATRON / CLIENT.CPP < prev    next >
C/C++ Source or Header  |  1993-06-27  |  1KB  |  63 lines

  1. /*
  2.  * CLIENT.CPP
  3.  * Modifications for Chapter 13: None
  4.  *
  5.  * Implementation of the CPatronClient class that just makes sure
  6.  * we get a CPatronDoc on doc creation and that we initialize fully.
  7.  *
  8.  * Copyright (c)1993 Microsoft Corporation, All Rights Reserved
  9.  *
  10.  * Kraig Brockschmidt, Software Design Engineer
  11.  * Microsoft Systems Developer Relations
  12.  *
  13.  * Internet  :  kraigb@microsoft.com
  14.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  15.  */
  16.  
  17.  
  18.  
  19. #include "patron.h"
  20.  
  21.  
  22. /*
  23.  * CPatronClient::CPatronClient
  24.  * CPatronClient::~CPatronClient
  25.  *
  26.  * Constructor Parameters:
  27.  *  hInst           HINSTANCE of the application.
  28.  */
  29.  
  30. CPatronClient::CPatronClient(HINSTANCE hInst)
  31.     : CClient(hInst)
  32.     {
  33.     return;
  34.     }
  35.  
  36.  
  37. CPatronClient::~CPatronClient(void)
  38.     {
  39.     return;
  40.     }
  41.  
  42.  
  43.  
  44.  
  45.  
  46. /*
  47.  * CPatronClient::CreateCDocument
  48.  *
  49.  * Purpose:
  50.  *  Constructs a new document specific to the application.
  51.  *
  52.  * Parameters:
  53.  *  None
  54.  *
  55.  * Return Value:
  56.  *  LPCDocument     Pointer to the new document object.
  57.  */
  58.  
  59. LPCDocument CPatronClient::CreateCDocument(void)
  60.     {
  61.     return (LPCDocument)(new CPatronDoc(m_hInst));
  62.     }
  63.